/** @file
* Use 4 keys simulation mouse move
*
* @author Ivan HE
*
*/
#ifndef __MOUSEPAD_h
#define __MOUSEPAD_h

#include <stdint.h>
#include <stdbool.h>

#include "usb_api.h"
#include "wdp_common.h"
#include "app_param.h"
#include "lu1_bfb.h"


#define JOY_UP       SW1	/* P0.0 */
#define JOY_DOWN     SW2	/* P0.1*/
#define JOY_LEFT     SW3	/* P0.2*/
#define JOY_RIGHT    SW4	/* P0.3 */

#define CURSOR_STEP     5

#define DOWN            1
#define LEFT            2
#define RIGHT           3
#define UP              4



void Joystick_Send(uint8_t Keys);
uint8_t JoyState(void);

#endif	//end of file
